<?php

namespace common\models;

use Yii;
use \common\models\base\ApiRelease as BaseApiRelease;

/**
 * This is the model class for table "api_release".
 */
class ApiRelease extends BaseApiRelease
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return array_replace_recursive(parent::rules(),
	    [
            [['version', 'file', 'content', 'publish_at', 'status', 'apk_size'], 'required'],
            [['version', 'status', 'apk_size', 'deleted_by'], 'integer'],
            [['publish_at'], 'safe'],
            [['file', 'content'], 'string', 'max' => 255]
        ]);
    }
	
}
